#include <stdio.h>
#include <stdlib.h>
#include "libping6.h"

int main(int argc, char **argv) {
	char *addr="::1";
	if(argc>1) {
		addr=argv[1];
	}
	float r;
	r=libping6_ping(addr,NULL,0,0);
	printf("Result=%f [%lu]\n",r,sizeof(r));
	if(r<0.0) {
		char *e=libping6_ping_errstr();
		printf("Error String: %s\n",e);
		exit(1);
	}
	exit(1);
}
